<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
<!-- QCtmTabPage.cpp -->
  <meta name="description" content="QCtmTabWidget 的子页面.">
  <title>QCtmTabPage Class | QCustomUi 1.19.0</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
    <div class="main">
    <div class="main-rounded">
        <div class="navigationbar">
        <ul>
<li><a href="index.html">QCustomUi 1.19.0</a></li>
<li><a href="qcustomui-module.html" translate="no">QCustomUi</a></li>
<li>QCtmTabPage</li>
<li id="buildversion">QCustomUi 1.19.0 Reference Documentation</li>
    </ul>
    </div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3 id="toc">Contents</h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#signals">Signals</a></li>
<li class="level1"><a href="#protected-functions">Protected Functions</a></li>
<li class="level1"><a href="#reimplemented-protected-functions">Reimplemented Protected Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title" translate="no">QCtmTabPage Class</h1>
<!-- $$$QCtmTabPage-brief -->
<p><a href="qctmtabwidget.html" translate="no">QCtmTabWidget</a> 的子页面. <a href="#details">More...</a></p>
<!-- @@@QCtmTabPage -->
<div class="table"><table class="alignedsummary requisites" translate="no">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> <code translate="no">#include &lt;QCtmTabPage.h&gt;</code></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="https://doc.qt.io/qt/qwidget.html" translate="no">QWidget</a></td></tr>
</table></div>
<ul>
<li><a href="qctmtabpage-members.html">List of all members, including inherited members</a></li>
</ul>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary" translate="no">
<tr><td class="memItemLeft rightAlign topAlign"> QAction *</td><td class="memItemRight bottomAlign"><b><a href="qctmtabpage.html#actionAt" translate="no">actionAt</a></b>(int <i>index</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QAction *</td><td class="memItemRight bottomAlign"><b><a href="qctmtabpage.html#addAction" translate="no">addAction</a></b>(const QIcon &amp;<i>icon</i>, const QString &amp;<i>text</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QAction *</td><td class="memItemRight bottomAlign"><b><a href="qctmtabpage.html#addAction-1" translate="no">addAction</a></b>(const QString &amp;<i>text</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QWidget *</td><td class="memItemRight bottomAlign"><b><a href="qctmtabpage.html#centralWidget" translate="no">centralWidget</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qctmtabpage.html#count" translate="no">count</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> const QSize &amp;</td><td class="memItemRight bottomAlign"><b><a href="qctmtabpage.html#iconSize" translate="no">iconSize</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QAction *</td><td class="memItemRight bottomAlign"><b><a href="qctmtabpage.html#insertAction" translate="no">insertAction</a></b>(int <i>index</i>, const QString &amp;<i>text</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qctmtabpage.html#insertAction-1" translate="no">insertAction</a></b>(int <i>index</i>, QAction *<i>action</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QAction *</td><td class="memItemRight bottomAlign"><b><a href="qctmtabpage.html#insertAction-2" translate="no">insertAction</a></b>(int <i>index</i>, const QIcon &amp;<i>icon</i>, const QString &amp;<i>text</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qctmtabpage.html#setIconSize" translate="no">setIconSize</a></b>(const QSize &amp;<i>size</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QWidget *</td><td class="memItemRight bottomAlign"><b><a href="qctmtabpage.html#takeCentralWidget" translate="no">takeCentralWidget</a></b>() const</td></tr>
</table></div>
<h2 id="signals">Signals</h2>
<div class="table"><table class="alignedsummary" translate="no">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qctmtabpage.html#iconSizeChanged" translate="no">iconSizeChanged</a></b>(const QSize &amp;<i>size</i>)</td></tr>
</table></div>
<h2 id="protected-functions">Protected Functions</h2>
<div class="table"><table class="alignedsummary" translate="no">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qctmtabpage.html#QCtmTabPage" translate="no">QCtmTabPage</a></b>(QCtmTabWidget *<i>parent</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qctmtabpage.html#dtor.QCtmTabPage" translate="no">~QCtmTabPage</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QWidget *</td><td class="memItemRight bottomAlign"><b><a href="qctmtabpage.html#cornerWidget" translate="no">cornerWidget</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qctmtabpage.html#setCentralWidget" translate="no">setCentralWidget</a></b>(QWidget *<i>widget</i>)</td></tr>
</table></div>
<h2 id="reimplemented-protected-functions">Reimplemented Protected Functions</h2>
<div class="table"><table class="alignedsummary" translate="no">
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qctmtabpage.html#actionEvent" translate="no">actionEvent</a></b>(QActionEvent *<i>event</i>) override</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qctmtabpage.html#paintEvent" translate="no">paintEvent</a></b>(QPaintEvent *<i>event</i>) override</td></tr>
</table></div>
<!-- $$$QCtmTabPage-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
</div>
<!-- @@@QCtmTabPage -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QCtmTabPage[overload1]$$$QCtmTabPageQCtmTabWidget* -->
<h3 class="fn" translate="no" id="QCtmTabPage"><code class="details extra" translate="no">[protected]</code> QCtmTabPage::<span class="name">QCtmTabPage</span>(<span class="type"><a href="qctmtabwidget.html" translate="no">QCtmTabWidget</a></span> *<i>parent</i>)</h3>
<p>构造函数 <i translate="no">parent</i>.</p>
<!-- @@@QCtmTabPage -->
<!-- $$$~QCtmTabPage[overload1]$$$~QCtmTabPage -->
<h3 class="fn" translate="no" id="dtor.QCtmTabPage"><code class="details extra" translate="no">[virtual noexcept protected]</code> QCtmTabPage::<span class="name">~QCtmTabPage</span>()</h3>
<p>析构函数.</p>
<!-- @@@~QCtmTabPage -->
<!-- $$$actionAt[overload1]$$$actionAtint -->
<h3 class="fn" translate="no" id="actionAt"><span class="type"><a href="https://doc.qt.io/qt/qaction.html" translate="no">QAction</a></span> *QCtmTabPage::<span class="name">actionAt</span>(<span class="type">int</span> <i>index</i>) const</h3>
<p>返回序号为 <i translate="no">index</i> 的Action.</p>
<p><b>See also </b><a href="qctmtabpage.html#addAction" translate="no">addAction</a> and <a href="qctmtabpage.html#insertAction" translate="no">insertAction</a>.</p>
<!-- @@@actionAt -->
<!-- $$$actionEvent[overload1]$$$actionEventQActionEvent* -->
<h3 class="fn" translate="no" id="actionEvent"><code class="details extra" translate="no">[override virtual protected]</code> <span class="type">void</span> QCtmTabPage::<span class="name">actionEvent</span>(<span class="type"><a href="https://doc.qt.io/qt/qactionevent.html" translate="no">QActionEvent</a></span> *<i>event</i>)</h3>
<p>Reimplements: <a href="https://doc.qt.io/qt/qwidget.html#actionEvent" translate="no">QWidget::actionEvent</a>(QActionEvent *event).</p>
<!-- @@@actionEvent -->
<!-- $$$addAction[overload1]$$$addActionconstQIcon&constQString& -->
<h3 class="fn" translate="no" id="addAction"><span class="type"><a href="https://doc.qt.io/qt/qaction.html" translate="no">QAction</a></span> *QCtmTabPage::<span class="name">addAction</span>(const <span class="type"><a href="https://doc.qt.io/qt/qicon.html" translate="no">QIcon</a></span> &amp;<i>icon</i>, const <span class="type"><a href="https://doc.qt.io/qt/qstring.html" translate="no">QString</a></span> &amp;<i>text</i>)</h3>
<p>添加图标为 <i translate="no">icon</i> 文本为 <i translate="no">text</i> 的Action到角落窗口上.</p>
<p><b>See also </b><a href="qctmtabpage.html#insertAction" translate="no">insertAction</a>.</p>
<!-- @@@addAction -->
<!-- $$$addAction$$$addActionconstQString& -->
<h3 class="fn" translate="no" id="addAction-1"><span class="type"><a href="https://doc.qt.io/qt/qaction.html" translate="no">QAction</a></span> *QCtmTabPage::<span class="name">addAction</span>(const <span class="type"><a href="https://doc.qt.io/qt/qstring.html" translate="no">QString</a></span> &amp;<i>text</i>)</h3>
<p>This function overloads addAction.</p>
<p>添加文本为 <i translate="no">text</i> 的Action到角落窗口上.</p>
<p><b>See also </b><a href="qctmtabpage.html#addAction" translate="no">QCtmTabPage::addAction</a>.</p>
<!-- @@@addAction -->
<!-- $$$centralWidget[overload1]$$$centralWidget -->
<h3 class="fn" translate="no" id="centralWidget"><span class="type"><a href="https://doc.qt.io/qt/qwidget.html#QWidget" translate="no">QWidget</a></span> *QCtmTabPage::<span class="name">centralWidget</span>() const</h3>
<p>返回中央窗口.</p>
<p><b>See also </b><a href="qctmtabpage.html#setCentralWidget" translate="no">setCentralWidget</a>.</p>
<!-- @@@centralWidget -->
<!-- $$$cornerWidget[overload1]$$$cornerWidget -->
<h3 class="fn" translate="no" id="cornerWidget"><code class="details extra" translate="no">[protected]</code> <span class="type"><a href="https://doc.qt.io/qt/qwidget.html#QWidget" translate="no">QWidget</a></span> *QCtmTabPage::<span class="name">cornerWidget</span>() const</h3>
<p>返回角落窗口.</p>
<!-- @@@cornerWidget -->
<!-- $$$count[overload1]$$$count -->
<h3 class="fn" translate="no" id="count"><span class="type">int</span> QCtmTabPage::<span class="name">count</span>() const</h3>
<p>返回Action的数量.</p>
<p><b>See also </b><a href="qctmtabpage.html#addAction" translate="no">addAction</a> and <a href="qctmtabpage.html#insertAction" translate="no">insertAction</a>.</p>
<!-- @@@count -->
<!-- $$$iconSize -->
<h3 class="fn" translate="no" id="iconSize">const <span class="type"><a href="https://doc.qt.io/qt/qsize.html" translate="no">QSize</a></span> &amp;QCtmTabPage::<span class="name">iconSize</span>() const</h3>
<p>返回Action的图标大小.</p>
<div class="admonition note"><p><b>Note: </b>Getter function for property iconSize. </p>
</div><p><b>See also </b><a href="qctmtabpage.html#setIconSize" translate="no">setIconSize</a>.</p>
<!-- @@@iconSize -->
<!-- $$$iconSizeChanged -->
<h3 class="fn" translate="no" id="iconSizeChanged"><code class="details extra" translate="no">[signal]</code> <span class="type">void</span> QCtmTabPage::<span class="name">iconSizeChanged</span>(const <span class="type"><a href="https://doc.qt.io/qt/qsize.html" translate="no">QSize</a></span> &amp;<i>size</i>)</h3>
<p>当Action的图标大小发生改变时发送该信号 <i translate="no">size</i>.</p>
<div class="admonition note"><p><b>Note: </b>Notifier signal for property <a href="qctmtabpage.html#iconSize" translate="no">iconSize</a>. </p>
</div><p><b>See also </b><a href="qctmtabpage.html#setIconSize" translate="no">setIconSize</a>.</p>
<!-- @@@iconSizeChanged -->
<!-- $$$insertAction[overload1]$$$insertActionintconstQString& -->
<h3 class="fn" translate="no" id="insertAction"><span class="type"><a href="https://doc.qt.io/qt/qaction.html" translate="no">QAction</a></span> *QCtmTabPage::<span class="name">insertAction</span>(<span class="type">int</span> <i>index</i>, const <span class="type"><a href="https://doc.qt.io/qt/qstring.html" translate="no">QString</a></span> &amp;<i>text</i>)</h3>
<p>添加文本为 <i translate="no">text</i> 的Action，并插入到角落窗口的 <i translate="no">index</i> 位置.</p>
<!-- @@@insertAction -->
<!-- $$$insertAction$$$insertActionintQAction* -->
<h3 class="fn" translate="no" id="insertAction-1"><span class="type">void</span> QCtmTabPage::<span class="name">insertAction</span>(<span class="type">int</span> <i>index</i>, <span class="type"><a href="https://doc.qt.io/qt/qaction.html" translate="no">QAction</a></span> *<i>action</i>)</h3>
<p>This function overloads insertAction.</p>
<p>插入 <i translate="no">action</i> 到角落窗口的 <i translate="no">index</i> 位置.</p>
<p><b>See also </b><a href="https://doc.qt.io/qt/qwidget.html#insertAction" translate="no">QWidget::insertAction</a>.</p>
<!-- @@@insertAction -->
<!-- $$$insertAction$$$insertActionintconstQIcon&constQString& -->
<h3 class="fn" translate="no" id="insertAction-2"><span class="type"><a href="https://doc.qt.io/qt/qaction.html" translate="no">QAction</a></span> *QCtmTabPage::<span class="name">insertAction</span>(<span class="type">int</span> <i>index</i>, const <span class="type"><a href="https://doc.qt.io/qt/qicon.html" translate="no">QIcon</a></span> &amp;<i>icon</i>, const <span class="type"><a href="https://doc.qt.io/qt/qstring.html" translate="no">QString</a></span> &amp;<i>text</i>)</h3>
<p>This function overloads insertAction.</p>
<p>添加图标为 <i translate="no">icon</i> 文本为 <i translate="no">text</i> 的Action，并插入到角落窗口的 <i translate="no">index</i> 位置.</p>
<p><b>See also </b><a href="qctmtabpage.html#insertAction" translate="no">QCtmTabPage::insertAction</a>.</p>
<!-- @@@insertAction -->
<!-- $$$paintEvent[overload1]$$$paintEventQPaintEvent* -->
<h3 class="fn" translate="no" id="paintEvent"><code class="details extra" translate="no">[override virtual protected]</code> <span class="type">void</span> QCtmTabPage::<span class="name">paintEvent</span>(<span class="type"><a href="https://doc.qt.io/qt/qpaintevent.html" translate="no">QPaintEvent</a></span> *<i>event</i>)</h3>
<p>Reimplements: <a href="https://doc.qt.io/qt/qwidget.html#paintEvent" translate="no">QWidget::paintEvent</a>(QPaintEvent *event).</p>
<!-- @@@paintEvent -->
<!-- $$$setCentralWidget[overload1]$$$setCentralWidgetQWidget* -->
<h3 class="fn" translate="no" id="setCentralWidget"><code class="details extra" translate="no">[protected]</code> <span class="type">void</span> QCtmTabPage::<span class="name">setCentralWidget</span>(<span class="type"><a href="https://doc.qt.io/qt/qwidget.html#QWidget" translate="no">QWidget</a></span> *<i>widget</i>)</h3>
<p>设置中央窗口 <i translate="no">widget</i>.</p>
<p><b>See also </b><a href="qctmtabpage.html#centralWidget" translate="no">centralWidget</a>.</p>
<!-- @@@setCentralWidget -->
<!-- $$$setIconSize -->
<h3 class="fn" translate="no" id="setIconSize"><span class="type">void</span> QCtmTabPage::<span class="name">setIconSize</span>(const <span class="type"><a href="https://doc.qt.io/qt/qsize.html" translate="no">QSize</a></span> &amp;<i>size</i>)</h3>
<p>设置Action图标大小 <i translate="no">size</i>.</p>
<div class="admonition note"><p><b>Note: </b>Setter function for property <a href="qctmtabpage.html#iconSize" translate="no">iconSize</a>. </p>
</div><p><b>See also </b><a href="qctmtabpage.html#iconSize" translate="no">iconSize</a>.</p>
<!-- @@@setIconSize -->
<!-- $$$takeCentralWidget[overload1]$$$takeCentralWidget -->
<h3 class="fn" translate="no" id="takeCentralWidget"><span class="type"><a href="https://doc.qt.io/qt/qwidget.html#QWidget" translate="no">QWidget</a></span> *QCtmTabPage::<span class="name">takeCentralWidget</span>() const</h3>
<p>取出中央窗口，不再控制其生命周期.</p>
<p><b>See also </b><a href="qctmtabpage.html#setCentralWidget" translate="no">setCentralWidget</a> and <a href="qctmtabpage.html#centralWidget" translate="no">centralWidget</a>().</p>
<!-- @@@takeCentralWidget -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> QCustomUi
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br/> </div>
</body>
</html>
